﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 维修单,
    /// 一个服务单挂多个维修单
    /// </summary>
    public class EWorkingBill
    {
        /// <summary>
        /// 工作单Id
        /// </summary>
        public Guid Id { get; set; }

        public string Number { get; set; }

        /// <summary>
        /// 维修单Id
        /// </summary>
        public Guid MaintenanceBillId { get; set; }

        /// <summary>
        /// 维修单的服务项Id
        /// </summary>
        public Guid MaintenanceBillServiceItemId { get; set; }

        /// <summary>
        /// 服务项目Id
        /// </summary>
        public Guid ServiceItemId { get; set; }

        /// <summary>
        /// 技师Id
        /// </summary>
        public Guid TechnicianId { get; set; }

        /// <summary>
        /// 完成时间,
        /// 如果创建的时候不输入，则自动取当前时间
        /// </summary>
        public DateTime? FinishedTime { get; set; }

        /// <summary>
        /// 工时
        /// </summary>
        public decimal Hour { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }
        public int Status { get; set; }

        public string Creator { get; set; }
        public DateTime CreatedTime { get; set; }
    }
}
